{if !$logged_in}
<form action="{$url}&do=login" method="post">
	<table id="formular" cellpadding="0" cellspacing="0"
		style="border-collapse: collapse;">
		<tr>
			<td align="right">Username:</td>
			<td><input type="text" name="username" size="14" maxlength="128"></td>
		</tr>
		<tr>
			<td align="right">Passwort:</td>
			<td><input type="password" name="password" size="15"
				maxlength="32"></td>
		</tr>
		<tr>
			<td colspan="2" id="headtable"><input type="submit"
				value="Einloggen &raquo;"><input type="checkbox" value="1"
				name="cookie" />Merken</td>
		</tr>
	</table>
</form>

<br />
{if isset($login_error)}
<font color="red">{$login_error}</font>
<br />
{/if} {else}
<br />
<h3 align="center">Hallo {$cUser->getUsername()}!</h3>

<ul>
	<li><a style="color: orange;" href="index.php?site=bet">Tippen</a></li>
	<li><a style="color: orange;" href="index.php?site=settings">Einstellungen</a></li>
	{if $cUser->getRang() > 1}
	<li><a style="color: orange;" href="admin.php?site=home">Admin
			Panel</a></li> {/if}
	<li><a style="color: orange;" href="{$url}&do=logout">Logout</a></li>
</ul>
<br />

{/if}
